/*
 * Copyright (C) 2013 gujicheng
 * 
 * Licensed under the GPL License Version 2.0;
 * you may not use this file except in compliance with the License.
 * 
 * If you have any question, please contact me.
 * 
 *************************************************************************
 **                   Author information                                **
 *************************************************************************
 ** Email: gujicheng197@126.com                                         **
 ** QQ   : 29600731                                                     **
 ** Weibo: http://weibo.com/gujicheng197                                **
 *************************************************************************
 */
package com.libra.sinvoice

import android.util.Log

object LogHelper {
    private val ROOT_TAG = "SinVoice"

    fun d(classTag: String, privateTag: String, msg: String): Int {
        return Log.d(String.format("%s %s %s", ROOT_TAG, classTag, privateTag), msg)
    }

    fun d(classTag: String, msg: String): Int {
        return d(classTag, "", msg)
    }

    fun i(classTag: String, privateTag: String, msg: String): Int {
        return Log.i(String.format("%s %s %s", ROOT_TAG, classTag, privateTag), msg)
    }

    fun i(classTag: String, msg: String): Int {
        return i(classTag, "", msg)
    }

    fun e(classTag: String, privateTag: String, msg: String): Int {
        return Log.e(String.format("%s %s %s", ROOT_TAG, classTag, privateTag), msg)
    }

    fun e(classTag: String, msg: String): Int {
        return e(classTag, "", msg)
    }

    fun v(classTag: String, privateTag: String, msg: String): Int {
        return Log.v(String.format("%s %s %s", ROOT_TAG, classTag, privateTag), msg)
    }

    fun v(classTag: String, msg: String): Int {
        return v(classTag, "", msg)
    }
}
